﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ICM_Master_Contact.aspx.cs" Inherits="KPIS.GERP.GIMS.APP.APP_UI.Add_Form.ICM_Master_Contact" %>
<%@ Register Assembly="BasicFrame.WebControls.BasicDatePicker" Namespace="BasicFrame.WebControls" TagPrefix="BDP" %>
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
<%@ Register TagPrefix="custom" Namespace="KPIS.Customs.UI" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title></title>
    <LINK REL="StyleSheet" HREF="../../Styles/StyleSheet.css" TYPE="text/css">  
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true" >
        </asp:ScriptManager>
        <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
            <script type="text/javascript" src="../../Scripts/Common.js"></script>
            <script type="text/javascript">
                function onTextChangeGeneral(sender) {
                    if (sender.get_value() == "") {
                        sender.set_text("");
                    }
                }

                var cancelDropDownClosing = false;

                function StopPropagation(e) {
                    e.cancelBubble = true;
                    if (e.stopPropagation) {
                        e.stopPropagation();
                    }
                }

                function OnClientDropDownClosingHandler(sender, e) {
                    e.set_cancel(cancelDropDownClosing);
                }

                function ChangeTab(value, page_index) {
                    Page_ClientValidate();
                    if (Page_IsValid) {
                        var tabStrip = $find("<%= RadTabStrip1.ClientID %>");
                        var pageView = $find("<%= RadMultiPage1.ClientID %>");
                        var tab = tabStrip.findTabByValue(value);
                        var pageViewIndex = page_index;
                        tab.set_selected(true);
                        pageView.get_pageViews().getPageView(pageViewIndex).set_selected(true);
                    }
                }

                function GetRadWindow() {
                    var oWindow = null;
                    if (window.radWindow)
                        oWindow = window.RadWindow; //Will work in Moz in all cases, including clasic dialog      
                    else if (window.frameElement.radWindow)
                        oWindow = window.frameElement.radWindow; //IE (and Moz as well)      
                    return oWindow;
                }

                function CloseWindow() {
                    GetRadWindow().Close();
                }

                function ValidateCitizen(source, arguments) {
                    if (arguments.Value.length == 17) {
                        var digit = arguments.Value.replace(/-/g, "");
                        var multi_num = 13;
                        var str_digit = 0;
                        var result = 0;
                        while (multi_num != 1) {
                            if (digit.charAt(str_digit) == Number.NaN) {
                                arguments.IsValid = false;
                                return;
                            }
                            result = result + digit.charAt(str_digit) * multi_num;
                            multi_num = multi_num - 1;
                            str_digit = str_digit + 1;
                        }

                        result = result % 11;
                        if (result == 0) result = 10;

                        result = 11 - result;

                        if (result == 10) result = 0;

                        if (result != digit.charAt(12)) {
                            arguments.IsValid = false;
                            return;
                        }
                    }
                    else {
                        arguments.IsValid = false;
                    }
                }
                
                Sys.Application.add_load(setCalendarTable);
                
                function setCalendarTable() {
                    var tooltip = $find("<%= ToolTipDate.ClientID %>");
                    var calendar = $find("<%= CalendarDate.ClientID %>");                       
                    var fastNavigation = calendar._getFastNavigation();
                    fastNavigation.OnToday =
                    function()
                    {
                        var today = new Date;
                        var date = [today.getFullYear(), today.getMonth()+ 1, today.getDate()];
                        calendar.selectDate(date, true);
                        fastNavigation.Popup.Hide();  
                        var all_date = date.toString().split(",");
                        var year = parseInt(all_date[0]) + 543;
                        var month = all_date[1];
                        var day = all_date[2];
                        if (day.length == 1) {
                            day = '0' + day;
                        }
                        if (month.length == 1) {
                            month = '0' + month;
                        }

                        var maskText = $find("<%= txtDate.ClientID %>");
                        maskText.set_value(day + month + year);
                        tooltip.hide();
                    }
                }

                function OnDateClick(calendarInstance, args) {
                    var tooltip = $find("<%= ToolTipDate.ClientID %>");
                    var fastNavigation = calendarInstance._getFastNavigation();
                    var date = args.get_renderDay().get_date().toString();
                    var all_date = date.split(",");
                    var year = parseInt(all_date[0]) + 543;
                    var month = all_date[1];
                    var day = all_date[2];
                    if (day.length == 1) {
                        day = '0' + day;
                    }
                    if (month.length == 1) {
                        month = '0' + month;
                    }

                    var maskText = $find("<%= txtDate.ClientID %>");
                    maskText.set_value(day + month + year);
                    tooltip.hide();
                }
                
                function OnCalendarViewChanged(sender, step) {
                    var year = parseInt(sender.FocusedDate[0]) + 543;
                    var month = sender.FocusedDate[1];
                    document.getElementById("CalendarDate_Title").innerHTML = changeMonthNumberToName(month) + " " + year; 
                } 
            </script>
        </telerik:RadCodeBlock>
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" BackgroundPosition="None" Skin="Outlook">
        </telerik:RadAjaxLoadingPanel>
        <telerik:RadAjaxManager runat="server" ID="RadManager1">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="nextButton_Detail">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="nextButton_Detail" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="nextButton_Address">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="nextButton_Address" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="backButton_Address">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="backButton_Address" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="nextButton_Bank">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="nextButton_Bank" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="backButton_Bank">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="backButton_Bank" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="backButton_Partner">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="backButton_Partner" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="panelCommand_Bank">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="panel_Bank" LoadingPanelID="RadAjaxLoadingPanel1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="panelCommand_Partner">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="panel_Partner" LoadingPanelID="RadAjaxLoadingPanel1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
    
        <asp:Panel ID="panelHidden" runat="server">
            <asp:HiddenField ID="hdSeq" runat="server" Value="" />
        </asp:Panel>
         <asp:Panel ID="panelAll" runat="server" Width="100%">
            <div class="exampleWrapper">
                <telerik:RadTabStrip ID="RadTabStrip1" SelectedIndex="2" runat="server" 
                    MultiPageID="RadMultiPage1" Skin="Vista" CssClass="multiPage">
                    <Tabs>
                        <telerik:RadTab runat="server" Text="ข้อมูลหลักของผู้ขาย" Value="Detail" Selected="true">
                        </telerik:RadTab>
                        <telerik:RadTab runat="server" Text="ข้อมูลที่อยู่ของผู้ขาย" Value="Address">
                        </telerik:RadTab>
                        <telerik:RadTab runat="server" Text="ข้อมูลทางธนาคารของผู้ขาย" Value="Bank">
                        </telerik:RadTab>
                        <telerik:RadTab runat="server" Text="ข้อมูลผู้ถือหุ้น" Value="Partner">
                        </telerik:RadTab>
                    </Tabs>
                </telerik:RadTabStrip>
                <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0" CssClass="pageView">
                    <telerik:RadPageView ID="RadPageView1" runat="server">
                        <asp:Panel ID="panel_Detail" runat="server">
                            <div class="bigModuleRight" align="left">
                                <div class="bigModuleBottomRight">
                                    <asp:Panel ID="panelHeaderList" runat="server">
                                        <div class="header-grid">
                                            <asp:Label ID="lblHeaderList" runat="server" Text="ข้อมูลหลักของผู้ขาย"></asp:Label>
                                        </div>
                                    </asp:Panel>
                                    <asp:Panel CssClass="panelList" runat="server" ID="panelList_Detail" ScrollBars="Auto">
                                        <table width="98%">
                                            <tr>
                                                <td>
                                                    <table cellpadding="0" cellspacing="0" width="98%">
                                                        <tr>
                                                            <td width="30px">
                                                            </td>
                                                            <td>
                                                                <div class="formList-detail">
                                                                    <table>
                                                                        <tr>
                                                                            <td width = "150px" valign="top">
                                                                                กลุ่มผู้ขาย :
                                                                            </td>
                                                                            <td colspan="2">
                                                                                <telerik:RadComboBox CssClass="RadComboBox" runat="server" ID="cbGroup" AllowCustomText="true" ShowDropDownOnTextboxClick="true"
                                                                                    Filter="Contains" DataTextField="Name" DataValueField="Seq"
                                                                                    EmptyMessage=".. พิมพ์ที่นี่เพื่อช่วยค้นหา .." LoadingMessage="กำลังโหลดข้อมูล ..." MarkFirstMatch="false" 
                                                                                    OnClientTextChange="onTextChangeGeneral">
                                                                                </telerik:RadComboBox>
                                                                                &nbsp;<label id="Label1" runat="server"><font color="red">*</font></label>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td>
                                                                            </td>
                                                                            <td colspan="2">
                                                                                <asp:RequiredFieldValidator ID="ValcbGroup" runat="server" ControlToValidate="cbGroup" SetFocusOnError="True" Display="Dynamic" ErrorMessage="* กรุณาระบุกลุ่มผู้ขาย *"></asp:RequiredFieldValidator>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </div>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                            </td>
                                                            <td>
                                                                <div class="formList-detail">
                                                                    <table>
                                                                        <tr>
                                                                            <td width = "150px" valign="top">
                                                                                ชื่อผู้ขาย(ไทย) :
                                                                            </td>
                                                                            <td colspan="2">
                                                                                <asp:TextBox CssClass="TextBox" ID="txtNameTh" runat="server" Width="280px"></asp:TextBox>
                                                                                <label id="Label2" runat="server"><font color="red">*</font></label>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td>
                                                                            </td>
                                                                            <td colspan="2">
                                                                                <asp:RequiredFieldValidator ID="ValtxtNameTh" runat="server" ControlToValidate="txtNameTh" SetFocusOnError="True" Display="Dynamic" ErrorMessage="* กรุณาระบุชื่อผู้ขาย(ไทย) *"></asp:RequiredFieldValidator>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </div>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                            </td>
                                                            <td>
                                                                <div class="formList-detail">
                                                                    <table>
                                                                        <tr>
                                                                            <td width = "150px">
                                                                                ชื่อผู้ขาย(อังกฤษ) :
                                                                            </td>
                                                                            <td colspan="2">
                                                                                <asp:TextBox CssClass="TextBox" ID="txtNameEn" runat="server" Width="280px"></asp:TextBox>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </div>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                            </td>
                                                            <td>
                                                                <div class="formList-detail">
                                                                    <table>
                                                                         <tr>
                                                                            <td width = "150px" valign="top">
                                                                                ชื่อผู้ประสานงาน :
                                                                            </td>
                                                                            <td colspan="2">
                                                                                <asp:TextBox CssClass="TextBox" ID="txtCoordinator" runat="server" Width="280px"></asp:TextBox>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </div>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                            </td>
                                                            <td>
                                                                <div class="formList-detail">
                                                                    <table>
                                                                         <tr>
                                                                            <td width = "150px" valign="top">
                                                                                รหัสผู้ขายจากระบบ GFMIS :
                                                                            </td>
                                                                            <td colspan="2">
                                                                                <asp:TextBox CssClass="TextBox" ID="txtGfmis" runat="server" Width="280px"></asp:TextBox>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </div>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                            </td>
                                                            <td>
                                                                <div class="formList-detail">
                                                                    <table>
                                                                         <tr>
                                                                            <td width = "150px" valign="top">
                                                                                รหัสประจำตัวผู้เสียภาษี :
                                                                            </td>
                                                                            <td colspan="2">
                                                                                <asp:TextBox CssClass="TextBox" ID="txtTax" runat="server" Width="140px"></asp:TextBox>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </div>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                            </td>
                                                            <td>
                                                                <div class="formList-detail">
                                                                    <table>
                                                                         <tr>
                                                                            <td width = "150px" valign="top">
                                                                                การคิดฐานภาษี :
                                                                            </td>
                                                                            <td colspan="2">
                                                                                <telerik:RadComboBox CssClass="RadComboBox" runat="server" ID="cbVat" AllowCustomText="true" ShowDropDownOnTextboxClick="true"
                                                                                    Filter="Contains" DataTextField="Name" DataValueField="Seq" Width="150px" Height="60px"
                                                                                    EmptyMessage=".. พิมพ์ที่นี่เพื่อช่วยค้นหา .." LoadingMessage="กำลังโหลดข้อมูล ..." MarkFirstMatch="false" 
                                                                                    OnClientTextChange="onTextChangeGeneral">
                                                                                </telerik:RadComboBox>
                                                                                &nbsp;<label id="Label5" runat="server"><font color="red">*</font></label>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td>
                                                                            </td>
                                                                            <td colspan="2">
                                                                                <asp:RequiredFieldValidator ID="ValcbVat" runat="server" ControlToValidate="cbVat" SeattFocusOnError="True" Display="Dynamic" ErrorMessage="* กรุณาระบุการคิดฐานภาษี *"></asp:RequiredFieldValidator>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </div>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                            </td>
                                                            <td>
                                                                <div class="formList-detail">
                                                                    <table>
                                                                         <tr>
                                                                            <td width = "150px" valign="top">
                                                                                ทุนจดทะเบียน :
                                                                            </td>
                                                                            <td colspan="2">
                                                                                <telerik:RadNumericTextBox ID="txtRegCapital" Runat="server" Width="100px" Skin="Outlook"></telerik:RadNumericTextBox>
                                                                                &nbsp;บาท
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </div>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                            </td>
                                                            <td>
                                                                <div class="formList-detail">
                                                                    <table>
                                                                         <tr>
                                                                            <td width = "150px" valign="top">
                                                                                วันที่จดทะเบียน :
                                                                            </td>
                                                                            <td colspan="2">
                                                                                <telerik:RadMaskedTextBox ID="txtDate" runat="server" Mask=" ##/##/####" Width="75px" TextWithLiterals=" //" SelectionOnFocus="SelectAll"></telerik:RadMaskedTextBox>
                                                                                <asp:LinkButton ID="LinkButton1" runat="server" CssClass="LinkButton">
                                                                                    <img alt="" src="../Image/Icon/Calendar.gif" style="border:0px;vertical-align:middle;" />
                                                                                </asp:LinkButton>
                                                                                <telerik:RadToolTip ID="ToolTipDate" runat="server" Animation="None" HideEvent="LeaveToolTip" Position="MiddleRight" ShowEvent="OnClick" Skin="Telerik" 
                                                                                TargetControlID="LinkButton1" Modal="true">
                                                                                    <telerik:RadCalendar id="CalendarDate" runat="server" TitleFormat="MMMM yyyy" EnableMultiSelect="false" UseRowHeadersAsSelectors="false" UseColumnHeadersAsSelectors="false" DayCellToolTipFormat="dddd, dd MMMM, yyyy" NavigationPrevToolTip="เดือนก่อนหน้า" NavigationNextToolTip="เดือนถัดไป" FastNavigationNextToolTip="3 เดือนถัดไป" FastNavigationPrevToolTip="3 เดือนก่อนหน้า">
                                                                                        <ClientEvents OnDateClick="OnDateClick" OnCalendarViewChanged="OnCalendarViewChanged"></ClientEvents>
                                                                                        <FastNavigationSettings EnableTodayButtonSelection="true" TodayButtonCaption="ไปที่วันนี้" OkButtonCaption="เปลี่ยน" CancelButtonCaption="ยกเลิก" />
                                                                                    </telerik:RadCalendar>
                                                                                </telerik:RadToolTip>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td>
                                                                            </td>
                                                                            <td colspan="2">
                                                                                <asp:CustomValidator ID="ValDate" runat="server" ControlToValidate="txtDate" ErrorMessage="* กรุณาระบุวันที่ให้ถูกต้อง *" Display="Dynamic" ClientValidationFunction="validateDate"></asp:CustomValidator>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </div>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                            </td>
                                                            <td>
                                                                <div class="formList-detail">
                                                                    <table>
                                                                         <tr>
                                                                            <td width = "150px" valign="top">
                                                                                สถานะผู้ขาย :
                                                                            </td>
                                                                            <td>
                                                                                <asp:RadioButtonList CssClass="font-label" ID="rblStatus" runat="server" RepeatDirection="Horizontal" DataTextField="Name" DataValueField="Seq"></asp:RadioButtonList>
                                                                            </td>
                                                                            <td>
                                                                                &nbsp;<label id="Label6" runat="server"><font color="red">*</font></label>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td width = "150px" valign="top">
                                                                            </td>
                                                                            <td colspan="2">
                                                                                <asp:TextBox CssClass="TextBox" ID="txtRemarkStatus" runat="server" Width="280px"></asp:TextBox>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td>
                                                                            </td>
                                                                            <td colspan="2">
                                                                                <asp:RequiredFieldValidator ID="ValrblStatus" runat="server" ControlToValidate="rblStatus" SeattFocusOnError="True" Display="Dynamic" ErrorMessage="* กรุณาระบุสถานะผู้ขาย *"></asp:RequiredFieldValidator>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </div>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                        </table>
                                    </asp:Panel>
                                </div>
                            </div>
                            <asp:Panel ID="panelTool_Detail" runat="server">
                                <div class="bigModuleRight">
                                    <div class="bigModuleBottomRight">
                                        <table width="100%">
                                            <tr class="command-list">
                                                <td align="right">
                                                    <asp:LinkButton ID="nextButton_Detail" runat="server" OnClientClick="javascript:ChangeTab('Address',1);">
                                                        <img style="border:0px;vertical-align:middle;" alt="" src="../Image/Button/next_button.png" />
                                                    </asp:LinkButton>               
                                                </td>
                                            </tr>
                                        </table>
                                    </div>
                                </div>        
                            </asp:Panel>
                        </asp:Panel>
                    </telerik:RadPageView>
                    <telerik:RadPageView ID="RadPageView2" runat="server">
                        <asp:Panel ID="panel_Address" runat="server">
                            <div class="bigModuleRight" align="left">
                                <div class="bigModuleBottomRight">
                                    <asp:Panel ID="panel2" runat="server">
                                        <div class="header-grid">
                                            <asp:Label ID="Label4" runat="server" Text="ข้อมูลที่อยู่ของผู้ขาย"></asp:Label>
                                        </div>
                                    </asp:Panel>
                                    <asp:Panel CssClass="panelList" runat="server" ID="panelList_Address" ScrollBars="Auto">
                                         <table width="98%">
                                            <tr>
                                                <td>
                                                    <table cellpadding="0" cellspacing="0" width="98%">
                                                        <tr>
                                                            <td width="30px">
                                                            </td>
                                                            <td colspan="3">
                                                                <div class="formList-detail">
                                                                    <table>
                                                                        <tr>
                                                                            <td width="115px">
                                                                                ประเทศ :
                                                                            </td>
                                                                            <td>
                                                                                <asp:TextBox CssClass="TextBox" ID="txtCountry" runat="server" Width="130px"></asp:TextBox>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </div>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                            </td>
                                                            <td>
                                                                <div class="formList-detail">
                                                                    <table>
                                                                        <tr>
                                                                            <td width="120px">
                                                                                บ้านเลขที่ :
                                                                            </td>
                                                                            <td>
                                                                                <asp:TextBox CssClass="TextBox" ID="txtAddress" runat="server" Width="130px"></asp:TextBox>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </div>
                                                            </td>
                                                            <td width="10px">
                                                            </td>
                                                            <td>
                                                                <div class="formList-detail">
                                                                    <table>
                                                                        <tr>
                                                                            <td width="120px">
                                                                                อาคาร :
                                                                            </td>
                                                                            <td>
                                                                                <asp:TextBox CssClass="TextBox" ID="txtBuilding" runat="server" Width="130px"></asp:TextBox>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </div>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                            </td>
                                                            <td>
                                                                <div class="formList-detail">
                                                                    <table>
                                                                        <tr>
                                                                            <td width="120px">
                                                                                ชั้น :
                                                                            </td>
                                                                            <td>
                                                                                <asp:TextBox CssClass="TextBox" ID="txtFloor" runat="server" Width="130px"></asp:TextBox>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </div>
                                                            </td>
                                                            <td width="10px">
                                                            </td>
                                                            <td>
                                                                <div class="formList-detail">
                                                                    <table>
                                                                        <tr>
                                                                            <td width="120px">
                                                                                หมู่บ้าน :
                                                                            </td>
                                                                            <td>
                                                                                <asp:TextBox CssClass="TextBox" ID="txtVillage" runat="server" Width="130px"></asp:TextBox>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </div>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                            </td>
                                                            <td>
                                                                <div class="formList-detail">
                                                                    <table>
                                                                        <tr>
                                                                            <td width="120px">
                                                                                ถนน :
                                                                            </td>
                                                                            <td>
                                                                                <asp:TextBox CssClass="TextBox" ID="txtRoad" runat="server" Width="130px"></asp:TextBox>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </div>
                                                            </td>
                                                            <td width="10px">
                                                            </td>
                                                            <td>
                                                                <div class="formList-detail">
                                                                    <table>
                                                                       <tr>
                                                                            <td width="120px">
                                                                                ซอย :
                                                                            </td>
                                                                            <td>
                                                                                <asp:TextBox CssClass="TextBox" ID="txtLane" runat="server" Width="130px"></asp:TextBox>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </div>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                            </td>
                                                            <td>
                                                                <div class="formList-detail">
                                                                    <table>
                                                                        <tr>
                                                                            <td width="120px">
                                                                                แขวง/ตำบล :
                                                                            </td>
                                                                            <td>
                                                                                <asp:TextBox CssClass="TextBox" ID="txtDistrict" runat="server" Width="130px"></asp:TextBox>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </div>
                                                            </td>
                                                            <td width="10px">
                                                            </td>
                                                            <td>
                                                                <div class="formList-detail">
                                                                    <table>
                                                                        <tr>
                                                                            <td width="120px">
                                                                                เขต/อำเภอ :
                                                                            </td>
                                                                            <td>
                                                                                <asp:TextBox CssClass="TextBox" ID="txtAmphur" runat="server" Width="130px"></asp:TextBox>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </div>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                            </td>
                                                            <td>
                                                                <div class="formList-detail">
                                                                    <table>
                                                                        <tr>
                                                                            <td width = "120px">
                                                                                รหัสไปรษณีย์ :
                                                                            </td>
                                                                            <td>
                                                                                <asp:TextBox CssClass="TextBox" ID="txtPost" runat="server" Width="130px"></asp:TextBox>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </div>
                                                            </td>
                                                            <td width="10px">
                                                            </td>
                                                            <td>
                                                                <div class="formList-detail">
                                                                    <table>
                                                                        <tr>
                                                                            <td width = "120px">
                                                                                จังหวัด :
                                                                            </td>
                                                                            <td>
                                                                                <asp:TextBox CssClass="TextBox" ID="txtProvince" runat="server" Width="130px"></asp:TextBox>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </div>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                            </td>
                                                            <td>
                                                                <div class="formList-detail">
                                                                    <table>
                                                                        <tr>
                                                                            <td width = "120px">
                                                                                หมายเลขโทรศัพท์ :
                                                                            </td>
                                                                            <td>
                                                                                <asp:TextBox CssClass="TextBox" ID="txtTel" runat="server" Width="130px"></asp:TextBox>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </div>
                                                            </td>
                                                            <td width="10px">
                                                            </td>
                                                            <td>
                                                                <div class="formList-detail">
                                                                    <table>
                                                                        <tr>
                                                                            <td width = "120px">
                                                                                หมายเลขต่อ :
                                                                            </td>
                                                                            <td>
                                                                                <asp:TextBox CssClass="TextBox" ID="txtTelNext" runat="server" Width="130px"></asp:TextBox>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </div>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                            </td>
                                                            <td>
                                                                <div class="formList-detail">
                                                                    <table>
                                                                        <tr>
                                                                            <td width="120px">
                                                                                หมายเลขแฟกซ์ :
                                                                            </td>
                                                                            <td>
                                                                                <asp:TextBox CssClass="TextBox" ID="txtFax" runat="server" Width="130px"></asp:TextBox>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </div>
                                                            </td>
                                                            <td width="10px">
                                                            </td>
                                                            <td>
                                                                <div class="formList-detail">
                                                                    <table>
                                                                        <tr>
                                                                            <td width="120px">
                                                                                หมายเลขต่อ :
                                                                            </td>
                                                                            <td>
                                                                                <asp:TextBox CssClass="TextBox" ID="txtFaxNext" runat="server" Width="130px"></asp:TextBox>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </div>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                            </td>
                                                            <td colspan="3">
                                                                <div class="formList-detail">
                                                                    <table>
                                                                        <tr>
                                                                            <td width="115px">
                                                                                อีเมล์ :
                                                                            </td>
                                                                            <td>
                                                                                <asp:TextBox CssClass="TextBox" ID="txtEmail" runat="server" Width="130px"></asp:TextBox>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </div>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                        </table>
                                    </asp:Panel>
                                </div>
                            </div>
                            <asp:Panel ID="panelTool_Address" runat="server">
                                <div class="bigModuleRight">
                                    <div class="bigModuleBottomRight">
                                        <table width="100%">
                                            <tr class="command-list">
                                                <td align="left">
                                                    <asp:LinkButton ID="backButton_Address" runat="server" OnClientClick="javascript:ChangeTab('Detail',0);">
                                                        <img style="border:0px;vertical-align:middle;" alt="" src="../Image/Button/back_button.png" />
                                                    </asp:LinkButton>
                                                </td>
                                                <td align="right">
                                                    <asp:LinkButton ID="nextButton_Address" runat="server" OnClientClick="javascript:ChangeTab('Bank',2);">
                                                        <img style="border:0px;vertical-align:middle;" alt="" src="../Image/Button/next_button.png" />
                                                    </asp:LinkButton>
                                                </td>
                                            </tr>
                                        </table>
                                    </div>
                                </div>        
                            </asp:Panel>
                        </asp:Panel>
                    </telerik:RadPageView>
                    <telerik:RadPageView ID="RadPageView3" runat="server">
                        <asp:Panel ID="panel_Bank" runat="server">
                            <table style="width: 98%;" cellpadding="0" cellspacing="0">
                                <tr valign="top">
                                    <td valign="top">
                                        <asp:Panel ID="panelCommand_Bank" runat="server">
                                            <div class="bigModuleRight">
                                                <div class="bigModuleBottomRight">
                                                    <table>
                                                        <tr class="command-list">
                                                            <td class="command-item" style="border: none">
                                                                <asp:LinkButton ID="ShowGrid_Bank" runat="server" CssClass="LinkButton" CausesValidation="false" OnClick="ShowGrid_Bank_Click">
                                                                    <img style="border:0px;vertical-align:middle;" alt="" src="../Image/Grid/table.gif" />&nbsp;&nbsp;แสดงข้อมูลทั้งหมด
                                                                </asp:LinkButton>                        
                                                            </td>
                                                            <td class="command-item">
                                                                <asp:LinkButton ID="AddNew_Bank" runat="server" CssClass="LinkButton" OnClick="AddNew_Bank_Click">
                                                                    <img style="border:0px;vertical-align:middle;" alt="" src="../Image/Grid/AddRecord.gif" />&nbsp;&nbsp;เพิ่มข้อมูลใหม่
                                                                </asp:LinkButton>
                                                            </td>
                                                            <td class="command-item">
                                                                <asp:LinkButton ID="AddNewSave_Bank" runat="server" CssClass="LinkButton" Visible="false" OnClick="AddNewSave_Bank_Click">
                                                                    <img style="border:0px;vertical-align:middle;" alt="" src="../Image/Grid/Cmd_Save.gif" />&nbsp;&nbsp;บันทึกข้อมูล
                                                                </asp:LinkButton>
                                                            </td>
                                                            <td class="command-item">
                                                                <asp:LinkButton ID="Delete_Bank" runat="server" CssClass="LinkButton" OnClientClick="javascript:return confirm('ยืนยันการลบข้อมูลที่เลือก')" OnClick="Delete_Bank_Click">
                                                                    <img style="border:0px;vertical-align:middle;" alt="" src="../Image/Grid/Delete.gif" />&nbsp;&nbsp;ลบข้อมูล
                                                                </asp:LinkButton>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </div>
                                            </div>        
                                        </asp:Panel>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Panel ID="panelData_Bank" runat="server">
                                            <div class="bigModuleRight">
                                                <div class="bigModuleBottomRight">
                                                    <asp:Panel ID="panelHeaderList1" runat="server">
                                                        <div class="header-grid">
                                                            <asp:Label ID="Label3" runat="server" Text="ข้อมูลทางธนาคารของผู้ขาย"></asp:Label>
                                                        </div>
                                                    </asp:Panel>
                                                    <asp:Panel CssClass="panelList" runat="server" ID="panelList_Bank" ScrollBars="Auto">
                                                        <table width="98%">
                                                            <tr>
                                                                <td valign="top">
                                                                    <ul class="formList" id="Ul3"> 
                                                                        <div class="formList-detail">
                                                                            <table>
                                                                                <tr>
                                                                                    <td width = "150px" valign="top">
                                                                                        รหัสธนาคาร :
                                                                                    </td>
                                                                                    <td>
                                                                                        <asp:TextBox CssClass="TextBox" ID="txtBankCode" runat="server" Width="280px"></asp:TextBox>
                                                                                        <label id="Label7" runat="server"><font color="red">*</font></label>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td>
                                                                                    </td>
                                                                                    <td>
                                                                                        <asp:Panel ID="panelValtxtBankCode" runat="server"></asp:Panel>
                                                                                    </td>
                                                                                </tr>
                                                                            </table>
                                                                        </div>    
                                                                        <div class="formList-detail">
                                                                            <table>
                                                                                <tr>
                                                                                    <td width = "150px" valign="top">
                                                                                        ชื่อธนาคาร :
                                                                                    </td>
                                                                                    <td>
                                                                                        <asp:TextBox CssClass="TextBox" ID="txtBankName" runat="server" Width="280px"></asp:TextBox>
                                                                                        <label id="Label8" runat="server"><font color="red">*</font></label>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td>
                                                                                    </td>
                                                                                    <td>
                                                                                        <asp:Panel ID="panelValtxtBankName" runat="server"></asp:Panel>
                                                                                    </td>
                                                                                </tr>
                                                                            </table>
                                                                        </div>  
                                                                        <div class="formList-detail">
                                                                            <table>
                                                                                <tr>
                                                                                    <td width = "150px" valign="top">
                                                                                        ชื่อสาขา :
                                                                                    </td>
                                                                                    <td>
                                                                                        <asp:TextBox CssClass="TextBox" ID="txtBankBranch" runat="server" Width="280px"></asp:TextBox>
                                                                                    </td>
                                                                                </tr>
                                                                            </table>
                                                                        </div>  
                                                                        <div class="formList-detail">
                                                                            <table>
                                                                                <tr>
                                                                                    <td width = "150px" valign="top">
                                                                                        หมายเลขบัญชี :
                                                                                    </td>
                                                                                    <td>
                                                                                        <asp:TextBox CssClass="TextBox" ID="txtAccountCode" runat="server" Width="280px"></asp:TextBox>
                                                                                    </td>
                                                                                </tr>
                                                                            </table>
                                                                        </div>   
                                                                        <div class="formList-detail">
                                                                            <table>
                                                                                <tr>
                                                                                    <td width = "150px" valign="top">
                                                                                        ชื่อเจ้าของบัญชี :
                                                                                    </td>
                                                                                    <td>
                                                                                        <asp:TextBox CssClass="TextBox" ID="txtAccountName" runat="server" Width="280px"></asp:TextBox>
                                                                                    </td>
                                                                                </tr>
                                                                            </table>
                                                                        </div>    
                                                                    </ul>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </asp:Panel>
                                                    <asp:Panel CssClass="panelGrid" ID="panelGrid_Bank" runat="server" ScrollBars="Auto" Visible="true">
                                                        <div align="center">
                                                            <telerik:RadGrid CssClass="RadGrid" ID="Grid_Bank" runat="server" AllowFilteringByColumn="true"
                                                            AllowMultiRowSelection="True" AllowPaging="false" AllowSorting="True"
                                                            AutoGenerateColumns="False" EnableAJAX="True"
                                                            GridLines="None" ShowStatusBar="false" Skin="Outlook" Width="95%"
                                                            OnItemCommand="Grid_Bank_ItemCommand">
                                                                <MasterTableView GroupLoadMode="Client" AllowMultiColumnSorting="true" Width="100%" NoMasterRecordsText="<div align=center><font color=gray><i>ไม่มีข้อมูล</i></font></div>">
                                                                    <PagerStyle Mode="NextPrevNumericAndAdvanced" />
                                                                    <Columns>
                                                                        <custom:CustomClientSelectColumn UniqueName="ClientSelectColumn">
                                                                            <HeaderStyle Width="20px" HorizontalAlign="Center" />
                                                                            <ItemStyle HorizontalAlign="Center" />
                                                                            <FilterTemplate> 
                                                                                <asp:LinkButton ID="clearFilter" runat="server" ToolTip="ยกเลิกการค้นหา" OnClick="clearFilter_Bank_Click">
                                                                                    <img style="border:0px;vertical-align:middle;" alt="" src="../Image/Grid/Cancel.gif" />
                                                                                </asp:LinkButton>
                                                                            </FilterTemplate> 
                                                                        </custom:CustomClientSelectColumn>
                                                                        <telerik:GridBoundColumn DataField="Code" 
                                                                            AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"
                                                                            FilterControlWidth="100%"
                                                                            HeaderStyle-HorizontalAlign="Center" HeaderText="รหัสธนาคาร" 
                                                                            UniqueName="Code">
                                                                            <HeaderStyle HorizontalAlign="Center" />
                                                                            <ItemStyle HorizontalAlign="Left" />
                                                                        </telerik:GridBoundColumn>
                                                                        <telerik:GridBoundColumn DataField="Name" 
                                                                            AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"
                                                                            FilterControlWidth="100%"
                                                                            HeaderStyle-HorizontalAlign="Center" HeaderText="ชื่อธนาคาร" 
                                                                            UniqueName="Name">
                                                                            <HeaderStyle HorizontalAlign="Center" />
                                                                            <ItemStyle HorizontalAlign="Left" />
                                                                        </telerik:GridBoundColumn>
                                                                        <telerik:GridBoundColumn DataField="Branch" 
                                                                            AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"
                                                                            FilterControlWidth="100%"
                                                                            HeaderStyle-HorizontalAlign="Center" HeaderText="ชื่อสาขา" 
                                                                            UniqueName="Branch">
                                                                            <HeaderStyle HorizontalAlign="Center" />
                                                                            <ItemStyle HorizontalAlign="Left" />
                                                                        </telerik:GridBoundColumn>
                                                                        <telerik:GridBoundColumn DataField="Account_code" 
                                                                            AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"
                                                                            FilterControlWidth="100%"
                                                                            HeaderStyle-HorizontalAlign="Center" HeaderText="หมายเลขบัญชี" 
                                                                            UniqueName="Account_code">
                                                                            <HeaderStyle HorizontalAlign="Center" />
                                                                            <ItemStyle HorizontalAlign="Left" />
                                                                        </telerik:GridBoundColumn>
                                                                        <telerik:GridBoundColumn DataField="Account_name" 
                                                                            AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"
                                                                            FilterControlWidth="100%"
                                                                            HeaderStyle-HorizontalAlign="Center" HeaderText="ชื่อบัญชี" 
                                                                            UniqueName="Account_name">
                                                                            <HeaderStyle HorizontalAlign="Center" />
                                                                            <ItemStyle HorizontalAlign="Left" />
                                                                        </telerik:GridBoundColumn>
                                                                        <telerik:GridBoundColumn DataField="InfoRecord.InfoStatus.Status" 
                                                                            HeaderStyle-HorizontalAlign="Center" UniqueName="InfoRecord.InfoStatus.Status" Visible="false">
                                                                            <HeaderStyle HorizontalAlign="Center" />
                                                                        </telerik:GridBoundColumn>
                                                                    </Columns>
                                                                </MasterTableView>
                                                                <ClientSettings EnableRowHoverStyle="true" >
                                                                    <Selecting AllowRowSelect="True" />
                                                                </ClientSettings>
                                                            </telerik:RadGrid>
                                                        </div>
                                                        <br />
                                                    </asp:Panel>
                                                </div>
                                            </div>
                                        </asp:Panel>
                                        <asp:Panel ID="panelTool_Bank" runat="server">
                                            <div class="bigModuleRight">
                                                <div class="bigModuleBottomRight">
                                                    <table width="100%">
                                                        <tr class="command-list">
                                                            <td align="left">
                                                                <asp:LinkButton ID="backButton_Bank" runat="server" OnClientClick="javascript:ChangeTab('Address',1);">
                                                                    <img style="border:0px;vertical-align:middle;" alt="" src="../Image/Button/back_button.png" />
                                                                </asp:LinkButton>
                                                            </td>
                                                            <td align="right">
                                                                <asp:LinkButton ID="nextButton_Bank" runat="server" OnClientClick="javascript:ChangeTab('Partner',3);">
                                                                    <img style="border:0px;vertical-align:middle;" alt="" src="../Image/Button/next_button.png" />
                                                                </asp:LinkButton>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </div>
                                            </div>        
                                        </asp:Panel>
                                    </td>
                                </tr>
                            </table>
                        </asp:Panel>
                    </telerik:RadPageView>
                    <telerik:RadPageView ID="RadPageView4" runat="server">
                        <asp:Panel ID="panel_Partner" runat="server">
                            <table style="width: 98%;" cellpadding="0" cellspacing="0">
                                <tr valign="top">
                                    <td valign="top">
                                        <asp:Panel ID="panelCommand_Partner" runat="server">
                                            <div class="bigModuleRight">
                                                <div class="bigModuleBottomRight">
                                                    <table>
                                                        <tr class="command-list">
                                                            <td class="command-item" style="border: none">
                                                                <asp:LinkButton ID="ShowGrid_Partner" runat="server" CssClass="LinkButton" CausesValidation="false" OnClick="ShowGrid_Partner_Click">
                                                                    <img style="border:0px;vertical-align:middle;" alt="" src="../Image/Grid/table.gif" />&nbsp;&nbsp;แสดงข้อมูลทั้งหมด
                                                                </asp:LinkButton>                        
                                                            </td>
                                                            <td class="command-item">
                                                                <asp:LinkButton ID="AddNew_Partner" runat="server" CssClass="LinkButton" OnClick="AddNew_Partner_Click">
                                                                    <img style="border:0px;vertical-align:middle;" alt="" src="../Image/Grid/AddRecord.gif" />&nbsp;&nbsp;เพิ่มข้อมูลใหม่
                                                                </asp:LinkButton>
                                                            </td>
                                                            <td class="command-item">
                                                                <asp:LinkButton ID="AddNewSave_Partner" runat="server" CssClass="LinkButton" Visible="false" OnClick="AddNewSave_Partner_Click">
                                                                    <img style="border:0px;vertical-align:middle;" alt="" src="../Image/Grid/Cmd_Save.gif" />&nbsp;&nbsp;บันทึกข้อมูล
                                                                </asp:LinkButton>
                                                            </td>
                                                            <td class="command-item">
                                                                <asp:LinkButton ID="Delete_Partner" runat="server" CssClass="LinkButton" OnClientClick="javascript:return confirm('ยืนยันการลบข้อมูลที่เลือก')" OnClick="Delete_Partner_Click">
                                                                    <img style="border:0px;vertical-align:middle;" alt="" src="../Image/Grid/Delete.gif" />&nbsp;&nbsp;ลบข้อมูล
                                                                </asp:LinkButton>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </div>
                                            </div>        
                                        </asp:Panel>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Panel ID="panelData_Partner" runat="server">
                                            <div class="bigModuleRight">
                                                <div class="bigModuleBottomRight">
                                                    <asp:Panel ID="panel5" runat="server">
                                                        <div class="header-grid">
                                                            <asp:Label ID="Label9" runat="server" Text="ข้อมูลผู้ถือหุ้น"></asp:Label>
                                                        </div>
                                                    </asp:Panel>
                                                    <asp:Panel CssClass="panelList" runat="server" ID="panelList_Partner" ScrollBars="Auto">
                                                        <table width="98%">
                                                            <tr>
                                                                <td valign="top">
                                                                    <ul class="formList" id="Ul4"> 
                                                                        <div class="formList-detail">
                                                                            <table>
                                                                                <tr>
                                                                                    <td width = "150px" valign="top">
                                                                                        ชื่อ-สกุล :
                                                                                    </td>
                                                                                    <td>
                                                                                        <asp:TextBox CssClass="TextBox" ID="txtPartnerName" runat="server" Width="280px"></asp:TextBox>
                                                                                        <label id="Label10" runat="server"><font color="red">*</font></label>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td>
                                                                                    </td>
                                                                                    <td>
                                                                                        <asp:Panel ID="panelValPartnerName" runat="server"></asp:Panel>
                                                                                    </td>
                                                                                </tr>
                                                                            </table>
                                                                        </div>    
                                                                        <div class="formList-detail">
                                                                            <table>
                                                                                <tr>
                                                                                    <td width = "150px" valign="top">
                                                                                        หมายเลขบัตรประชาชน :
                                                                                    </td>
                                                                                    <td>
                                                                                        <telerik:RadMaskedTextBox ID="txtPartnerCitizen" Runat="server" Width="105px" Mask="#-####-#####-##-#" PromptChar="_" Skin="Outlook" SelectionOnFocus="SelectAll"></telerik:RadMaskedTextBox>
                                                                                        <label id="Label11" runat="server"><font color="red">*</font></label>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td>
                                                                                    </td>
                                                                                    <td>
                                                                                        <asp:Panel ID="panelValPartnerCitizen" runat="server"></asp:Panel>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td>
                                                                                    </td>
                                                                                    <td>
                                                                                        <asp:Panel ID="panelValCheckCitizen" runat="server"></asp:Panel>
                                                                                    </td>
                                                                                </tr>
                                                                            </table>
                                                                        </div>  
                                                                        <div class="formList-detail">
                                                                            <table>
                                                                                <tr>
                                                                                    <td width = "150px" valign="top">
                                                                                        รายละเอียด :
                                                                                    </td>
                                                                                    <td>
                                                                                        <asp:TextBox CssClass="TextBox" ID="txtPartnerDescr" runat="server" Width="280px" TextMode="MultiLine" Height="100px"></asp:TextBox>
                                                                                    </td>
                                                                                </tr>
                                                                            </table>
                                                                        </div>  
                                                                    </ul>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </asp:Panel>
                                                    <asp:Panel CssClass="panelGrid" ID="panelGrid_Partner" runat="server" ScrollBars="Auto" Visible="true">
                                                        <div align="center">
                                                            <telerik:RadGrid CssClass="RadGrid" ID="Grid_Partner" runat="server" AllowFilteringByColumn="true"
                                                            AllowMultiRowSelection="True" AllowPaging="false" AllowSorting="True"
                                                            AutoGenerateColumns="False" EnableAJAX="True"
                                                            GridLines="None" ShowStatusBar="false" Skin="Outlook" Width="95%"
                                                            OnItemCommand="Grid_Partner_ItemCommand">
                                                                <MasterTableView GroupLoadMode="Client" AllowMultiColumnSorting="true" Width="100%" NoMasterRecordsText="<div align=center><font color=gray><i>ไม่มีข้อมูล</i></font></div>">
                                                                    <PagerStyle Mode="NextPrevNumericAndAdvanced" />
                                                                    <Columns>
                                                                        <custom:CustomClientSelectColumn UniqueName="ClientSelectColumn">
                                                                            <HeaderStyle Width="20px" HorizontalAlign="Center" />
                                                                            <ItemStyle HorizontalAlign="Center" />
                                                                            <FilterTemplate> 
                                                                                <asp:LinkButton ID="clearFilter" runat="server" ToolTip="ยกเลิกการค้นหา" OnClick="clearFilter_Partner_Click">
                                                                                    <img style="border:0px;vertical-align:middle;" alt="" src="../Image/Grid/Cancel.gif" />
                                                                                </asp:LinkButton>
                                                                            </FilterTemplate> 
                                                                        </custom:CustomClientSelectColumn>
                                                                        <telerik:GridBoundColumn DataField="Name" 
                                                                            AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"
                                                                            FilterControlWidth="100%"
                                                                            HeaderStyle-HorizontalAlign="Center" HeaderText="ชื่อ-สกุล" 
                                                                            UniqueName="Name">
                                                                            <HeaderStyle HorizontalAlign="Center" Width="150px"/>
                                                                            <ItemStyle HorizontalAlign="Left" />
                                                                        </telerik:GridBoundColumn>
                                                                        <telerik:GridBoundColumn DataField="Citizen" 
                                                                            AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"
                                                                            FilterControlWidth="100%"
                                                                            HeaderStyle-HorizontalAlign="Center" HeaderText="หมายเลขบัตรประชาชน"
                                                                            UniqueName="Citizen">
                                                                            <HeaderStyle HorizontalAlign="Center" Width="150px" />
                                                                            <ItemStyle HorizontalAlign="Left" />
                                                                        </telerik:GridBoundColumn>
                                                                        <telerik:GridBoundColumn DataField="Descr" 
                                                                            AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"
                                                                            FilterControlWidth="100%"
                                                                            HeaderStyle-HorizontalAlign="Center" HeaderText="รายละเอียด" 
                                                                            UniqueName="Descr">
                                                                            <HeaderStyle HorizontalAlign="Center" />
                                                                            <ItemStyle HorizontalAlign="Left" />
                                                                        </telerik:GridBoundColumn>
                                                                        <telerik:GridBoundColumn DataField="InfoRecord.InfoStatus.Status" 
                                                                            HeaderStyle-HorizontalAlign="Center" UniqueName="InfoRecord.InfoStatus.Status" Visible="false">
                                                                            <HeaderStyle HorizontalAlign="Center" />
                                                                        </telerik:GridBoundColumn>
                                                                    </Columns>
                                                                </MasterTableView>
                                                                <ClientSettings EnableRowHoverStyle="true" >
                                                                    <Selecting AllowRowSelect="True" />
                                                                </ClientSettings>
                                                            </telerik:RadGrid>
                                                        </div>
                                                        <br />
                                                    </asp:Panel>
                                                </div>
                                            </div>
                                        </asp:Panel>
                                        <asp:Panel ID="panelTool_Partner" runat="server">
                                            <div class="bigModuleRight">
                                                <div class="bigModuleBottomRight">
                                                    <table width="100%">
                                                        <tr class="command-list">
                                                            <td align="left">
                                                                <asp:LinkButton ID="backButton_Partner" runat="server" OnClientClick="javascript:ChangeTab('Bank',2);">
                                                                    <img style="border:0px;vertical-align:middle;" alt="" src="../Image/Button/back_button.png" />
                                                                </asp:LinkButton>
                                                            </td>
                                                            <td align="right">
                                                                 <asp:LinkButton ID="finishButton_Partner" runat="server" OnClick="finishButton_Partner_Click" OnClientClick="javascript:return confirm('ยืนยันการบันทึกข้อมูล');">
                                                                    <img style="border:0px;vertical-align:middle;" alt="" src="../Image/Button/finish_button.png" />
                                                                </asp:LinkButton>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </div>
                                            </div>        
                                        </asp:Panel>
                                    </td>
                                </tr>
                            </table>
                        </asp:Panel>
                    </telerik:RadPageView>
                </telerik:RadMultiPage>
            </div>
        </asp:Panel>
    </form>
</body>
</html>
